package com.tdam2011.grupo06.model;

import java.util.Date;

import android.app.Activity;
import android.graphics.drawable.Drawable;

import com.tdam2011.grupo06.R;

public class ItemEmail extends ItemHistorial
{
	
	public ItemEmail(int i, int ic, int ti, Date f, String n, String no)
	{
		super(i,ic,ti,f,n,no);
	}
	
	public ItemEmail()
	{
		super();
	}

	@Override
	public Drawable getTipoDrawable(Activity caller)
	{
		switch (tipo)
		{
			case 1:
				return caller.getResources().getDrawable(R.drawable.ic_entrante);
			case 2:
				return caller.getResources().getDrawable(R.drawable.ic_saliente);
			default:
				return null;
		
		}
	}
}